Page({
  data:{
    classes:{},
    textClass:''
  },
  onLoad: function (param){
    let _this=this
    wx.showToast({
      title: '加载中...',
      icon:'loading',
      duration:10000
    })
    wx.request({
      url: `https://www.azhouaa.cn/wxs/User/getCourses?classify=${param.classify}`,
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        console.log(res)
        _this.setData({
          classes:res.data.msg,
          msg:'',
          textClass:'text-black'
        })
        wx.hideToast()
      }
    })
  },
})